﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using BUSAuction;
using System.Data;

namespace _HTTT_HD_QuanLyGiaoDuc_WebService
{
	/// <summary>
	/// Summary description for ServiceXuLyThongTinDangKy
	/// </summary>
	[WebService(Namespace = "http://tempuri.org/")]
	[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
	[System.ComponentModel.ToolboxItem(false)]
	// To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
	// [System.Web.Script.Services.ScriptService]
	public class ServiceXuLyThongTinDangKy : System.Web.Services.WebService
	{
		[WebMethod]
		public bool kiemTraThoiHanDangKyHocPhan(DateTime time)
		{
			return BUSLichDangKy.kiemTraThoiHanDangKyHocPhan(time);
		}

		[WebMethod]
		public bool ghiNhanThongTinDangKyCuaSinhvien(int maSinhVien, int maLop)
		{
			return BUSThongTinDangKy.themThongTinDangKy(maSinhVien, maLop);
		}

		[WebMethod]
		public bool kiemTraThongTinDangKy(int maSinhVien, int maLop)
		{
			return BUSThongTinDangKy.kiemTraThongTinDangKy(maSinhVien, maLop);
		}

		[WebMethod]
		public DataTable layDanhSachLopDaDangKy(int maSinhVien)
		{
			return BUSThongTinDangKy.layDanhSachLopDaDangKy(maSinhVien);
		}

		[WebMethod]
		public DataTable layDanhSachLopCoTheDangKy(int maSinhVien)
		{
			return BUSThongTinDangKy.layDanhSachLopCoTheDangKy(maSinhVien);
		}
	}
}
